<?php
        error_reporting(0);
        // $link=mysql_connect(SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS);
        $link=mysql_connect('localhost','root','root');
    if($link)
    {
        // mysql_select_db(SAE_MYSQL_DB,$link);
        mysql_select_db('ncqihang',$link);
        //your code goes here	
    }
         $sj1=$_POST[sj1];
         $sj2=$_POST[sj2];
         $sj3=$_POST[sj3];
         $sj4=$_POST[sj4];
         $sj5=$_POST[sj5];
         $sj6=$_POST[sj6];
         $sj7=$_POST[sj7];
         $sj8=$_POST[sj8];
         $sj9=$_POST[sj9];
         $sj10=$_POST[sj10];
         $sj11=$_POST[sj11];
         $sj12=$_POST[sj12];

         echo $sj1 .','. $sj2;
         
        $sql_up="update CLine set Data =".$sj1." where ID =1;";
         $result_up = mysql_query($sql_up)
                   or die(SQL语句执行失败1);
        $sql_up = "update CLine set Data =".$sj2." where ID =2;";
         $result_up = mysql_query($sql_up)
                   or die(SQL语句执行失败);
        $sql_up ="update CLine set Data =".$sj3." where ID =3;";
        $result_up = mysql_query($sql_up)
                   or die(SQL语句执行失败);
        $sql_up ="update CLine set Data =".$sj4." where ID =4;";
        $result_up = mysql_query($sql_up)
                   or die(SQL语句执行失败);
        $sql_up ="update CLine set Data =".$sj5." where ID =5;";
        $result_up = mysql_query($sql_up)
                   or die(SQL语句执行失败);
        $sql_up ="update CLine set Data =".$sj6." where ID =6;";
        $result_up = mysql_query($sql_up)
                   or die(SQL语句执行失败);
        $sql_up ="update CLine set Data =".$sj7." where ID =7;";
        $result_up = mysql_query($sql_up)
                   or die(SQL语句执行失败);
        $sql_up ="update CLine set Data =".$sj8." where ID =8;";
        $result_up = mysql_query($sql_up)
                   or die(SQL语句执行失败);
        $sql_up ="update CLine set Data =".$sj9." where ID =9;";
        $result_up = mysql_query($sql_up)
                   or die(SQL语句执行失败);
        $sql_up ="update CLine set Data =".$sj10." where ID =10;";
        $result_up = mysql_query($sql_up)
                   or die(SQL语句执行失败);
        $sql_up ="update CLine set Data =".$sj11." where ID =11;";
        $result_up = mysql_query($sql_up)
                   or die(SQL语句执行失败);
        $sql_up ="update CLine set Data =".$sj12." where ID =12;";
        $result_up = mysql_query($sql_up)
                   or die(SQL语句执行失败12);
        if ($result_up)
        {
            echo "
                <script language='javascript' type='text/javascript'>
                        alert('SUCCESS !');
                        // window.location.href='http://1.ncqihang.sinaapp.com/Public/canvasLine.php'; 
                        window.location.href='../canvasLine.php';
                  </script>";
        }
         else {
                     echo "False！";
         }